<template>
  <div class="buttons">
    <el-button @click.native="handleClick">
      默认按钮
    </el-button>
    <el-button type="primary">主要按钮</el-button>
    <el-button type="text">文字按钮</el-button>
  </div>
</template>

<script>
import { Button, Message } from 'element-ui';

export default {
  components: {
    ElButton: Button,
    ElMessage: Message,
  },
  methods: {
    handleClick() {
      Message('这是一条消息提示');
    },
  },
};
</script>
